package fi.foyt.cs.persistence.domainmodel.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class User {

  public Key getId() {
    return id;
  }
  
  public String getFirstName() {
    return firstName;
  }
  
  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }
  
  public String getLastName() {
    return lastName;
  }
  
  public void setLastName(String lastName) {
    this.lastName = lastName;
  }
  
  public String getEmail() {
    return email;
  }
  
  public void setEmail(String email) {
    this.email = email;
  }
  
  public String getLocale() {
    return locale;
  }
  
  public void setLocale(String locale) {
    this.locale = locale;
  }
  
  public Boolean getLicenseAgreed() {
    return licenseAgreed;
  }
  
  public void setLicenseAgreed(Boolean licenseAgreed) {
    this.licenseAgreed = licenseAgreed;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false)
  private String firstName;
  
  @Column (nullable = false)
  private String lastName;

  @Column (nullable = false)
  private String email;
  
  @Column
  private String locale;
  
  @Column (nullable = false)
  private Boolean licenseAgreed;
}
